Small refactoring of pylab_tools, misc updates to docs, debug of wrongly reported coverall stats