Fix for #2935 

(1) default argument specified in parser.add_argument() overwrites the values parsed from the conf file. 
(2) fixed import error of package specified in init_generator()