Python Sort Array Of Objects By Measurable Attributes