def __init__(self, user=None, password=None, verify=True, proxies=None,<EOL>user_agent=DEFAULT_USER_AGENT):
self.session = requests.Session()<EOL>self.session.verify = verify<EOL>self.user_agent = user_agent or DEFAULT_USER_AGENT<EOL>if user and password:<EOL><INDENT>self.session.auth = requests.auth.HTTPBasicAuth(user, password)<EOL><DEDENT>if proxies:<EOL><INDENT>self.session.proxies.update(proxies)<EOL><DEDENT>
Create a connection session.

        Args:
            user (str): username for authentication (optional)
            password (str): password for authentication (optional)
            verify (bool): validate the entity credentials. (default: True)
            proxies (dict): key/value pair for http/https proxy settings.
                (optional)
            user_agent (str): A value to use for the User-Agent header in
                requests.  If not given, use a default value which represents
                this library.