Made any() and all() use python bools