Python 3 fix: "buffer" was removed from Python 3. (#18)