Generate a web application written in Python that will show a random cat photo every ten seconds. Import the time, random, and requests modules, and import Flask and Response classes from the flask module.
Get the photos from the placekitten.com API. The format of the URL should be: https://placekitten.com/width/height for example https://placekitten.com/600/400.
The photos of the cats should be between 400-800 pixels height and width. The app should continue running and log inbound requests for files to the terminal. Do not use an index.html template. The entire app should be in a single file.