[fix] version.py pep8 and py3 compatibility