[python] How exactly does the python any() function work?