some GAE optimization, thanks Quint
fixed (again) issue 1774:CAS client broken when using routes.py, thanks remco.boerma