Update beforecheck.py