necessary changes using 2to3, import fixes and whitespace fixes
fix import of URLError and convert request body to bytes
Merge pull request #28 from nephics/python3

Adding in Python 3 support