title: AttributeError: 'module' object has no attribute 'mkdirs'
body: <p>While creating a nested directory in Python 3.6 received following error:</p>
  
  <pre><code>AttributeError: 'module' object has no attribute 'mkdirs'
  </code></pre>
  
  <p>Sample code:</p>
  
  <pre><code>def create_sample_data():
      os.mkdirs("/tmp/lambdadir/ProjectTemp/mynewtest")
      f=open("/tmp/lambdadir/ProjectTemp/mynewtest/my_copy.txt","w+")
      f.write("This is inside a directory")
      f.close()
  </code></pre>
  
  <p>Please help.</p>