improving how the generate script handles python reserved words.