Create check.py

The other one is totally broken, so we're reverting to the old one. Probably should've used version control from the beginning.