This is for the case of being a string, correct?

How about checking directly for `isinstance(names, basestring)`?

Then all iterables that are not strings would be allowed.