Inconsistent use of ```np``` and ```numpy```