versioning: Catch an assertion error

* Catch an uncaught assertion error
* Minor pep8 fixes
* Update copyright date