Remove dependency on httplib2