Fix code style and gen_type of python.ml and ruby.ml, fix ret_type of jdl_parser.mly