def str_to_dict(s):
    """Converts a string like 'one:two three:4' into a dict with parsed values
    that's suitable to pass as args to obj.run_command.
    """
    d = {}
    els = s.split(' ')
    for el in els:
        key, value = el.split(':')
        try:
            d['key'] = eval(value, {}, {})
        except __HOLE__:
            d['key'] = value
        
    return d
dataset/ETHPy150Open SublimeText/SublimeCMD/actions.py/str_to_dict