Fixes deprication warning for NumPy 1.9+. Closes #13