Update eg_code.py

reduce the sleep time