@staticmethod
def _pythonize(value: str):
    """Transform value into something the python interpreter can parse.

        Transform value into pvalue such that:

            value = ast.literal_eval(pvalue)

        This isn't quite true, because if there are no spaces or quote marks in value, then

            pvalue = value
        """
    single_quote = "'"
    double_quote = '"'
    pvalue = value
    if single_quote in value and double_quote in value:
        value = value.replace(single_quote, '\\' + single_quote)
        pvalue = "'{}'".format(value)
    elif single_quote in value:
        pvalue = '"{}"'.format(value)
    elif double_quote in value:
        pvalue = "'{}'".format(value)
    elif ' ' in value:
        pvalue = "'{}'".format(value)
    return pvalue
