Nested Conditions In Python Which Data