converted to Python3 (and only Python3)