Fix python2 compatability: Using string_types instead of str for isinsta...

Current master failed to compile LESS files with Python 2.7 with unlimited recursion and "Illegal color value" errors. This PR fixes the issues.