Wrote back-end in python (Flask)