def itervalues(obj, **kwargs):
    """Iterate over dict values in Python 2 & 3."""
    return (obj.itervalues(**kwargs) 
            if hasattr(obj, 'itervalues') 
            else iter(obj.values(**kwargs)))