FYI- all of the scripts fail to execute for me b/c this: if **name** == "**main**": main() is defined above: def main(): By moving the above if block to the end of the script, everything works fine.... J