Fixed leftover use of "basestring"
Merge upstream pull req https://github.com/mitsuhiko/flask-sqlalchemy/pull/190