Implementation of Twitter internal API (Twitter graphql API) in Python with data validation by pydantic