pylint recommended fixes

2 actual errors, some warnings.

constant names changed (uppercase),
like _version is now _VERSION.
_open_library cannot be used without giving a library_name.

Most docstrings are still missing.