def map(**kwargs):
    """Returns a dictionary of the given keyword arguments mapped to their
    values from the environment, with input keys lower cased.
    """

    d = {}
    e = lower_dict(environ.copy())

    for k, v in kwargs.items():
        d[k] = e.get(v.lower())

    return d
def map ( ** kwargs ) : d = { } e = lower_dict ( environ . copy ( ) ) for k , v in kwargs . items ( ) : d [ k ] = e . get ( v . lower ( ) ) return d
Returns a dictionary of the given keyword arguments mapped to their
    values from the environment, with input keys lower cased.