Updated sample for review: To Python 27 and db->ndb