hacking version.py to working on py2.6