Initial cut of the python script.