How do I write a function that returns another function? How do I write a function that returns another function? python python