rewriting generate-dot-file in python and add new attributes (additionalDeliminator and weakDeliminator)