python NDB worksls