Plain python script versions of code to save.