Array Object Find Javascript Method Syntax Python