Been scripting/debugging a python app all day. Brain fried.
Me thinks it would be a good idea to gather all form data a python script receives and saving it in a dictionary before passing it on to other scripts. It becomes really hard to debug/modify script behaviour otherwise. The form variable is a CGIFieldStorage variable, and accessing by form['key'].value. Accessing keys in a dictionary with the name form1 would be form1['key'], thats without the .value.