BUG: improved fix for np 1.9 errors
Merge pull request #5 from ianthomas23/np_error_patch

BUG: improved fix for np 1.9 errors