def add_lookups(default_func, *lookups):
<EOL>return functools.partial(_get_attr_unless_lookup, default_func, lookups)<EOL>
Extend an attribute function with special cases. If a word is in the
    lookups, the value is returned. Otherwise the previous function is used.

    default_func (callable): The default function to execute.
    *lookups (dict): Lookup dictionary mapping string to attribute value.
    RETURNS (callable): Lexical attribute getter.