Fix python3 support

This small branch fixes support for installing in a python3 venv