i don't like this. if it is a basestring, make it a tuple, and use the tuple code. basestring shoul dbe considered shorthand for single element tuple. so always process a tuple to avoid code duplication.