git_object_model: Clean up

Fix pylint and flake8 errors and warnings.