Start python in unbuffered mode.
Example: python3 ./scripts/build_yml_files.py -c bitcoin monero dash pivx --withscript