Refactoring sphinx-apidoc