doc: fix doc generation + pep8