[python] Numpy where function multiple conditions