The esptool.py.bak is from github.com/themadinventor/esptool.
The esptool.py is converted fron python2 to python2/3 by futurize in the package future.