interprogram communication in python on linux,time.sleep(1)