code of ping.py created. change in comunicacionG4 (not tested)