add check_head.py script