Modified code to accept proxy_info object (found in httplib2.socks)