Recently we refactored pgmpy (https://github.com/pgmpy/pgmpy/pull/731) so we need to update the notebooks according to that.