Fix NameError, on Application.request, because use of self  when it shold be cls