bugfix due to circular depenency (models <-> doc_funcs), pep8 fixing