Edit Distance on Google App Engine