Remove unused variables.
Use MultiDict for wtforms

Use MultiDict class for input to wtforms form so that modules can be
loaded.