Update aftercheck.py