import time def main(request, response): # Sleep for 3s to delay onload. time.sleep(3) return [], b""