Use memoryview instead of np.getbuffer.  #210

np.getbuffer is not available in python3.
Merge branch 'issue210' into devel