Get the version number from the CMake script

Some further cleanup inspired by Robert's changes.  This way, I only need to edit the version number in one place and it automatically gets propagated to both the C++ and Python code.