finished python3 adaption (at least, passes the test/*py )