Check against basestring instead of str in collect.hosts.
Merge pull request #144 from frgtn/check_basestring_in_collect_hosts

Check against basestring instead of str in collect.hosts.