Replace instances of "basestring" with salt._compat.string_types

We should be using ``salt._compat.string_types`` when checking if a variable is a string, instead of ``basestring``. This is because Python 3 does not have a ``basestring`` class. This would have to be done eventually to support Python 3.