Docstring and pep8 category.py, entry.py, version.py

They are at good pep8 but not good pylint. There are some pylint violation that need to check deeper before fixing them.

I hope the docstring is consistent enough.