Javascript Iterate Over Array Of Objects Definition In Python