Python Check If Array Of Objects Sort