Name comparison in python