title: Create filename with metadata
body: <p>If it possible to create md file with some atributes and save it to .md format on python?
  So i have atributes:</p>
  
  <pre><code>year="2018"
  month="12"
  </code></pre>
  
  <p>and i need save it, for example, to 2018_12_metadata.md file with needful atributes. Here's how md file should look like</p>
  
  <pre><code>{
    "year": "2018",
    "month": "12"
  }
  </code></pre>
  
  <p>So i have some code, but i could find how save it to md format with needful atributes:</p>
  
  <pre><code>year="2018"
  month="12"
  path_folder="C:\\Users\" 
  MD_output = path_folder + year +'-'+ month +'_metadata.md'
  md_file - what should be here?
  md_file.write(MD_output)
  </code></pre>
  
  <p>Many thanks for any help.</p>