def remap_fields(dct, *include, **mapping):
    """Remap certain fields of a dict by yielding (key, value)."""
    for k, v in dct.iteritems():
        if include and k not in include:
            continue
        yield mapping.get(k, k), v
