expose sock, pass correct args to connect in stubs.  should fix httplib2 in python3