Fixed leftover use of "basestring"

This bug broke at least db.create_all() on Python 3.