Completed modification of check_inputs.py