use portable basestring type for isinstance's
Merge pull request #100 from catkin/isinstance_str_compat

use portable basestring type for isinstance's