bindings/pyduplex: fix basic sending/receiving of frames