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