Fix _execute_for_all_tables() in Python 3

- SQLAlchemy._execute_for_all_tables()
    Command could not be executed against specific binds, because
    types of strings were checked against basestring().

    Use string_types from the compatibility layer, instead to support
    Python 3.