examples/transport.py: refine syntax