add PyYAML
add check_path_exist in utils
refact gen module and del text init param