title: Python upload handler
body: <p>I have got this error as trying to upload a file to my web page:</p>
  
  <p>Traceback (most recent call last):
    File "./upload_handler.py", line 12, in 
      if term.file: 
  NameError: name 'term' is not defined</p>
  
  <p>Any help is appreciated.</p>