Adapt to changes in pyserdisp