use "and" here. it will allow the reader to understand that this is pure Python and not numpy logicals