27a28
> from six import string_types
52c53
< if not isinstance(filename, basestring):
---
> if not isinstance(filename, string_types):