TCP reader requires bytearray to permit extend.
Assert bundled that way gets evaluated as a tuple, which is always true, meaning assert will never fire.  Removed parens.