improving version.py -- more robust

This now complies with PEP440