PY3: Make compatibility changes for python3