Manipulate Array Of Objects In Python