def _start_response(status, headers, exc_info=None):
 if (exc_info is not None):
  raise exc_info[0], exc_info[1], exc_info[2]
 print ('Status: %s' % status)
 for (name, val) in headers:
  print ('%s: %s' % (name, val))
 print
 return sys.stdout.write

def _start_response ( status , headers , exc_info = None ) : if ( exc_info is not None ) : raise exc_info [ 0 ] , exc_info [ 1 ] , exc_info [ 2 ] print ( 'Status: %s' % status ) for ( name , val ) in headers : print ( '%s: %s' % ( name , val ) ) print return sys . stdout . write
a start_response() callable as specified by pep 333 .