Finished Code for Advanced Day 1 (Python and Flask)