doc: fix pylint warnings in docgen.py
core: add pylint check of doc/docgen.py (Travis)