'Returns http session for use with requests'

def get_conn(self, headers):

    conn = self.get_connection(self.http_conn_id)
    session = requests.Session()
    if ('://' in conn.host):
        self.base_url = conn.host
    else:
        schema = (conn.schema if conn.schema else 'http')
        self.base_url = ((schema + '://') + conn.host)
    if conn.port:
        self.base_url = (((self.base_url + ':') + str(conn.port)) + '/')
    if conn.login:
        session.auth = (conn.login, conn.password)
    if headers:
        session.headers.update(headers)
    return session
