python3 support
migrate python2 to python3