def wrap_http_connection(http_connection=None):
    if not http_connection:
        http_connection = requests.Session() if requests else httplib2.Http()
    if not is_requests_instance(http_connection):
        http_connection = RequestWrapper(http_connection)
    return http_connection