Update Array Of Objects In Python