Use python-versioneer

Fixes #17
This code looks quite similar to the code added on line 5, is there a reason both blocks of code exist separately in the same file?