Add bi-direction communication to forking.py