diff --git a/python/matrix_util.py b/python/matrix_util.py
index 9aae45ae992a5ebd4c6f6bdff115e19b6790ecf9..7b49c36b173425490e3ef72c6573bddacb4f5f8c 100644
--- a/python/matrix_util.py
+++ b/python/matrix_util.py
@@ -6,8 +6,9 @@ Tiny matrix functions, taken from Oscar source code.
 #--------------------------------------------------------------------------
 #--------------------------------------------------------------------------
 #--------------------------------------------------------------------------
+from math import *
+from numpy import *
 from random import random
-from math import sqrt,atan2,pi
 
 # Convert matrix to tuple
 def matrixToTuple(M):
@@ -34,6 +35,7 @@ def distVector(M2,M1):
 #  first vector and 2 other 'random' vectors)
 
 def generateOrthonormalM(v1):
+
     v2 = matrix([random(),random(),random()])
     v3 = matrix([random(),random(),random()])