It should be ``isinstance(linelist, basestring)`` for maximum compatibility