Update RetinaInputs.py

record input and thread, corrected teacher signal and memory leak bug