Python Loop Array Of Objects Type