Update fields.py

Whoops! This:

```
try:
    basestring
except NameError:
    basestring = str
```

Will raise an UnboundLocalError (subclass of NameError) and result in the same behavior as prior to this fix. Introduced another variable  to prevent this.