When you run the watershed outlet-finding script, you get this error:
Traceback (most recent call last):
File "mouths-of-watersheds.py", line 67, in <module>
if not cell_routing.mask and not flag:
NameError: name 'flag' is not defined
Removing and flag seems to fix it.