- use a buffer instead of a memoryview if python version < 2.7

(forgot to remove this code in commit 034d2e4746f066de41ca1dbf94b02087507819ce)