Test for basestring instead of str or unicode