* replacing basestring with str