[bug] python codegenerator template was casting all constants to ints.