Work on documentation

Mainly on the python part. I had a quick browse through to check if
the scripts were still working.