This fixes a bunch of Sphinx warnings

Not all warnings yet but should correct a number of broken links etc. 
Need to escape \t and \f in python string