Fixed to use correct name.
Starting to pythonify the code.