ADD: initial solution to buffer problem. Note that Evernote accepts solutions only in python3