passing variables between functions - python forms.py