Includes converting some of the remaining standalone scripts into Sphinx extensions. Make flake8 clean