Google App Engine code for R-tree app