Handles numpy compliace and testing

Continues the switch from python to numpy, including setting a random
numpy seed which should hopefully work with python 2 and python 3.