Add Flows.from_event class method.  Clean up imports.
Add flow calculator factory function.
Update flows script.
Merge changes made on ice9.