Trying to figure out where the py script is breaking