def has_key(x, y):
    if hasattr(x, 'has_key'):
        return x.has_key(y)
    else:
        return (y in x)
def has_key(x, y):
    if hasattr(x, 'has_key'):
        return x.has_key(y)
    else:
        return (y in x)