Common Python 2 / 3 code base without 2to3

This PR sets `use_2to3=False` in `setup.py` and fixes the few cases where the codebase wasn't simultaneously Python 2 / 3 compatible already.