fix a refactoring fuu
fix memoryview for python2.6