Now starts up in python 2 and 3

- changed import statements
- removed httplib
- other fixes