The code changes are to generate metadata.yaml, config.yaml, unithooks from tosca template.

this reads better with

if not os.path.isdir(): 
    os.mkdir()