def set_defaults(options, **defaults):
    'Update options with default values. '
    if ('defaults' not in options):
        options = dict(options)
        options['defaults'] = defaults
    return options
Update options with default values.
def set_defaults(options, **defaults):
    ' '
    if ('defaults' not in options):
        options = dict(options)
        options['defaults'] = defaults
    return options