Update checkscrapper.py

restructured the code