Added compat file for python 3 string compatibility handling
Moved version specific urllib imports into _compat
Changed Python 3 checks
Some pep8 cleanup
Added Adriano Orioli