Comic Sorting Python