if handler.script and (handler.script.endswith('.py') or '/' in handler.script
    ):
    raise appinfo_errors.ThreadsafeWithCgiHandler(
        'threadsafe cannot be enabled with CGI handler: %s' % handler.script)
Как перенести мой app.yaml на 2.7?