I added this second nested try/except and added the optional argument `morevars` so that `rv_discrete` can pass its `globals()` into this base class function.  This works around problems caused by the effect of file splitting on the dictionary returned by `globals()`.