Fix for array not supporting memoryview in Python 2.7