Start rewriting script in Python.