Javascript Find If Array Functions Python