Create begin-check.py

This is the executable script.