diff --git a/src/python/geomag/StreamConverter.py b/src/python/geomag/StreamConverter.py
index 8b4f9cbe12ea4fc6e68d5e2d3840ab9b83c4f6ca..4d1fda284d16a59aaf0283f7136dbf2d5442cd8d 100644
--- a/src/python/geomag/StreamConverter.py
+++ b/src/python/geomag/StreamConverter.py
@@ -7,7 +7,7 @@ Obs: Based on the observatories orientaion. H, E, Z, F, d0
 Mag: Based on Magnetic North. H, D, Z, F
 """
 
-
+import numpy
 import obspy.core
 import ChannelConverter
 
diff --git a/src/python/geomag/io/iaga2002/IAGA2002Factory.py b/src/python/geomag/io/iaga2002/IAGA2002Factory.py
index 21570460a415504ce2ff39eb82e66dbbff0adb83..e1466d9423e2096ccb70c9cfa28a9ad838a9c2f2 100644
--- a/src/python/geomag/io/iaga2002/IAGA2002Factory.py
+++ b/src/python/geomag/io/iaga2002/IAGA2002Factory.py
@@ -396,7 +396,8 @@ class IAGA2002Factory(TimeseriesFactory):
             if url does not start with file://
         """
         if not url.startswith('file://'):
-            raise TimeseriesFactoryException('Only file urls are supported for writing')
+            raise TimeseriesFactoryException(
+                    'Only file urls are supported for writing')
         filename = url.replace('file://', '')
         parent = os.path.dirname(filename)
         if not os.path.exists(parent):
diff --git a/src/python/main.py b/src/python/main.py
index daacb0cd1ee4ead40ce662ae31522aa800e5901c..1b0ac28599665f2c8bf67eb8365e025aa0e17a96 100644
--- a/src/python/main.py
+++ b/src/python/main.py
@@ -12,7 +12,6 @@ from obspy.core.utcdatetime import UTCDateTime
 
 def main():
     """Example loading IAGA2002 test data from a directory."""
-    import pprint
     iaga_dir = path.normpath(path.join(script_dir, '../../etc/iaga2002'))
     factory = iaga2002.IAGA2002Factory('file://' + iaga_dir +
             '/%(OBS)s/%(interval)s%(type)s/%(obs)s%(ymd)s%(t)s%(i)s.%(i)s',
@@ -25,4 +24,3 @@ def main():
 
 if __name__ == '__main__':
     main()
-