fixed Issue 1560:Smartgrid doesn work with Google app engine 1.8.1