optimize IsLangRtl()
rename generate-*py => gen_*py