In need of some very serious refactoring, but the pythonize function is satisfactory for the moment.