Communication like program written in Python