diff --git a/pgmpy/BayesianModel/BayesianModel.py b/pgmpy/BayesianModel/BayesianModel.py
index <HASH>..<HASH> 100644
--- a/pgmpy/BayesianModel/BayesianModel.py
+++ b/pgmpy/BayesianModel/BayesianModel.py
@@ -2,11 +2,10 @@
 
 import networkx as nx
 import numpy as np
-from Exceptions import Exceptions
-from BayesianModel import CPD
+from pgmpy.Exceptions import Exceptions
+from pgmpy.BayesianModel import CPD
 import itertools
 from scipy import sparse
-import sys
 
 
 class BayesianModel(nx.DiGraph):
diff --git a/pgmpy/Factor/Factor.py b/pgmpy/Factor/Factor.py
index <HASH>..<HASH> 100644
--- a/pgmpy/Factor/Factor.py
+++ b/pgmpy/Factor/Factor.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-from Exceptions import Exceptions
+from pgmpy.Exceptions import Exceptions
 import numpy as np
 from collections import OrderedDict
changed Exceptions to pgmpy.Exceptions in import statement