Use six.string_types for python 2.x