simple communication program using python