Some updates to the Hofstadter python script.