Update submit_file.py with more thorough local validation.