|
f = open('{}{}.txt'.format(workflow_name, i), 'w') |
In case of intensive usage it will not guarantee file name will be 'engaged' by another process.
There are functions for unique file name creation.
Or update implementation like - try to create file name and grab it.