def itervalues(obj, **kwargs):
    func = getattr(obj, 'itervalues', None)
    if (not func):
        func = obj.values
    return func(**kwargs)
def itervalues(obj, **kwargs):
    func = getattr(obj, 'itervalues', None)
    if (not func):
        func = obj.values
    return func(**kwargs)