Refecter main loop sr71.py.

* remove unnecessary variable
* remove print debug...
* output Queue length to log file