If this is the issue, you might find that AWS or Azure meets your needs
better. It seems that GAE, as of now, is more tuned for simpler web sites
and not for more complex processing.
I suspect that there might be a workaround where, around the 25 second mark,
reinvoke the URL with some state information to resume the work. Another
alternative is to figure out how to quantize your work, then have a local
server app invoke the right URLs as needed. I know that this is suboptimal,
but if you are committed to using GAE, it might be needed. The local server
can be pretty low end if it is just invoking URLs.