add `from __future__ import unicode_literals`

`type` in python2 needs a str though, so an explicit cast is models.py