Hello,
I'm not familiar with GAE but adding the following to your code should resolve the issue:
from google.appengine.api import urlfetch
urlfetch.set_default_fetch_deadline(40)
Reference:
http://stackoverflow.com/questions/14698119/httpexception-deadline-exceeded-while-waiting-for-http-response-from-url-dead