basestring compat for python 3 transparent params