Placed flowinspect specific functions from flowinspect.py into functions.py