changed line to if PY3