moved from [str, unicode] to basestring