Javascript Find Element In Nested Array Python Methods