Fix memoryview bug on py3k.