def ComplementEquivalence ( * args , * * kwargs ) : return ast . Complement ( ast . Equivalence ( * args , * * kwargs ) , * * kwargs )
python not eqaul to
Change x ! = y to not ( x == y ) .
def ComplementEquivalence(*args, **kwargs):
    """Change x != y to not(x == y)."""
    return ast.Complement(
        ast.Equivalence(*args, **kwargs), **kwargs)