Further changes to support python3. Moved the implementation to httplib2 which removed the need for urlparse.