gloo: remove local storage from buffer
style and py2 syntax