standardize display-queue mechanism (needed for pyplot, but probably useful for other packages as well)