Updated flow.py in upper directory .