python more graceful tricks - Serbipunk/notes GitHub Wiki sum(iterable, []) permutation_records = sum(all_permutations, []) input output