Python/dynamic_programming/checking request.py