Docs and backend api fixes. Pyflake on several modules