def setTimeout(numSec = 60): urlfetch.set_default_fetch_deadline(numSec) # Deserialise object and serialise it to JSON formatted string