update receive.py;
fixing bugs;