The nupic import statement should be after the `numpy` and `random` import statements.