<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def config_str2dict(option_value):
 """ Parse the value of a config option and convert it to a dictionary. The configuration allows lines formatted like: foo = Bar:1,Baz,Flub:0.75 This gets converted to a dictionary: foo = { 'Bar': 1, 'Baz': 0, 'Flub': 0.75 } Args: option_value -- The config string to parse. """

    dict = {}
    for key in option_value.split(','):
        if ':' in key:
            key, value = pair.split(':')
            value = float(value)
        else:
            value = 0
        dict[key] = value
    return dict