Update flows.py

added flow_to_port()