New code should use `six`, i.e. `six.string_types`.  See http://docs.astropy.org/en/stable/development/codeguide.html#writing-portable-code-for-python-2-and-3