[python] Sort a list by multiple attributes?