Python code: sorting a list, working with classes and derived classes, hidden variables, dictionaries in a list.