Fixed imports. Forgot to import numpy. Oops.