<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(key, value, local=True):
 """Set that config key to that value Unless local is set to False: only change local config """

    option = local and '--local' or ''
    run('config %s "%s" "%s"' % (option, key, value))