Switch from cgi.FieldStorage to FileField namedtuple