original source code of bindings from https://launchpad.net/ndb-bindings