PY3: Python 3 support in non-imported glue.py module.