Fixed tests to pass on python3

Fixed some test failures for py3k and changed sys.version_info to your utils.py3k
Now it builds sucessfully on Travis :)