Request function not used. Double spacing between functions PEP 8 (E302)

The Flask function "Request" is not used in the example.

PEP 9 (W603) is also saying something about "deprecated form of raising exception" for line 50.
but i guess it's ok for the purpose.