write instead of send to pyserial