How Do Recursive Functions Work Python