Js Iterate Through Array Python Methods List