Common code I use in some GAE projects