Add get_instance method.
pylint/pep8 cleanup.