Update flow-tools.py