Allow setup.py install with python3

These changes arose from 2to3.