title: handling boolean values in pyyaml
body: <p>I am using python jinja2 to render some json files for CI/CD. These files will be used by application which are written in GoLang.</p>
  <p>variables are defined a yaml files &amp; loaded using pyymal. For example..</p>
  <p>template</p>
  <pre><code>{ 
  &quot;enable_log&quot;: {{ enable_log}}  
  }
  </code></pre>
  <p>variable file:</p>
  <pre><code>---
  us-east-2:
   dev:
      enable_log: true 
   prod:
      enable_log: false
    
  </code></pre>
  <p>The result is as following</p>
  <pre><code>{ &quot;enable_log&quot;: True }
  </code></pre>
  <p>code snippet:</p>
  <pre><code>template_env = Environment(loader=FileSystemLoader(cfg_dir), trim_blocks=True,
                                             lstrip_blocks=True, undefined=StrictUndefined)
  
  source_template = template_env.get_template(cfg_template)
  
  config_data = yaml.load(open(VARS))
  
  with open(out_file, 'w') as f:
      data = source_template.render(config_data[region][env])
      f.write(data)
  
  </code></pre>
  <p>I know python booleans are True &amp; False. But the application code(Golang) is not loading that as   boolean. Is there any workaround in the pyyaml to fix this problem?</p>