unset = object()


def of(d):
    return {k: v for k, v in d.iteritems() if v != unset}


from six import iteritems
unset = object()


def of(d):
    return {k: v for k, v in iteritems(d) if v != unset}


Replace iteritems with six helper
Replace iteritems with six helper
