Recursive Functions Sorting Lists Python Syntax