add ability to query __version__ in python, closes #30