Added (final) changes to the Python version. Dixon said no Python, though C# is okay.