Lint the cmislib project

Clean up trailing whitespace, invoke tests
Pass pep8 and (most) pylint