Stop using new style buffer API.

Some objects like array.array doesn't support new style buffer API on Python 2.