def isstr(obj):
    """Check for stringy-ness in python 2.7 or 3"""
    try:
        return isinstance(obj, basestring)
    except __HOLE__:
        return isinstance(obj, str)
dataset/ETHPy150Open gallantlab/pycortex/cortex/xfm.py/isstr