fix reading of version in py3

The version is not being loaded correctly under python3 because `exec` works differently now.