Python communication problem

Something to study and get ideas from
Robin's examples

JML's (more recent) example