Removed lineshapes_dict and turned it into a sorted list
MNT: PEP8