diff --git a/tupak/core/likelihood.py b/tupak/core/likelihood.py
index 531a8142c10c6b52da982f9f1e3a193acbba1d03..eefa05754f0321068bbb939f2e6db546ffed5016 100644
--- a/tupak/core/likelihood.py
+++ b/tupak/core/likelihood.py
@@ -1,6 +1,5 @@
 from __future__ import division, print_function
 
-import inspect
 import numpy as np
 from scipy.special import gammaln
 from tupak.core.utils import infer_parameters_from_function
diff --git a/tupak/core/utils.py b/tupak/core/utils.py
index 49b7a32f32ad9ee5a3b3a6a3a3d0324aa5ce460c..82d3af182c1853c515230e9d825863aa676a89da 100644
--- a/tupak/core/utils.py
+++ b/tupak/core/utils.py
@@ -5,6 +5,7 @@ import numpy as np
 from math import fmod
 import argparse
 import traceback
+import inspect
 
 logger = logging.getLogger('tupak')
 
diff --git a/tupak/gw/waveform_generator.py b/tupak/gw/waveform_generator.py
index a840ed97b57d6a9a6388bd6f4e980694fac2d6ea..4abcb7ac14b25b2b4a0243ffb043675a4d865192 100644
--- a/tupak/gw/waveform_generator.py
+++ b/tupak/gw/waveform_generator.py
@@ -1,5 +1,3 @@
-import inspect
-
 from tupak.core import utils
 import numpy as np