Unknown variable name in use

The name "field" is not defined, but in use.
Found using flake8.
Merge pull request #1 from torbjorntorbjorn/unknown-name-field

Unknown variable name in use