Minor fix to geninput.py script [ci skip]