Changed from importing pylab to numpy in rotations.py