Is this poping up an MPL window in the middle of a script? It should be made at least optional (I tend to prefer to separate out plotting from processing anyhow).