def __init__(self, user_agent=None, api_key=None, timeout=<NUM_LIT>):
if user_agent is None:<EOL><INDENT>user_agent = '<STR_LIT>'.format(__version__)<EOL><DEDENT>self.api_key = api_key<EOL>self.timeout = timeout<EOL>self.session = requests.Session()<EOL>self.session.headers = {'<STR_LIT>': user_agent}<EOL>
:param user_agent: Optional user agent string.
:type user_agent: Optional[str]
:param api_key: Optional API key.
:type api_key: Optional[str]
:param timeout: Optional connect/read timeout in seconds.
:type timeout: Optional[float]