This script is now in Python.