pythonic class name for ReaderThread
hygienic disconnection
lock debugging
bugfix: length to receive
use non-reserved names for things

avoid 'type', 'id', ...