simplify DataInputStream.read
simplify ib.opt.Receiver to avoid metaclass for py3 compat