remove compatability for memoryview

Introduced in d3aefbeb8751de438e72c47449b85bb0df9b9fec