fixed Python3 support (again)