Minor fixes to PythonCorpus.
Did work on tests, but they fail.