Homework Flask/Recursive