Migrating AppEngine example to ndb from db