Modernize generator.py scripts
- use f-strings
- use
subprocess
andshutil
instead ofos.system
- use
enumerate
instead ofrange(len)
- remove unused functions
- deduplicate code
Edited by Arkadiy Illarionov
subprocess
and shutil
instead of os.system
enumerate
instead of range(len)