fix reading of version in py3
Merge pull request #245 from mgax/py3-version

fix reading of version in py3