Finally get it run on google apps' app engine.