Add log file support and a sleep to the echo.py script