def isLiteralStr(inp):
    return ((inp.startswith("'") and inp.endswith("'")) or
            (inp.startswith('"') and inp.endswith('"')))
is a literal string
dataset/ETHPy150Open xraypy/xraylarch/lib/utils/strutils.py/isLiteralStr