transfer from google-app-engine to github
shrink code