Make validate.py more amenable to on-line validation.