make version.py compatible with python >= 2.4 (closes #3)