def MySend(request_path, payload=None, content_type='application/octet-stream', timeout=None, force_auth=True, **kwargs):
 try:
  return MySend1(request_path, payload, content_type, timeout, force_auth, **kwargs)
 except Exception as e:
  if ((type(e) != urllib2.HTTPError) or (e.code != 500)):
   raise
  print >>sys.stderr, (((('Loading ' + request_path) + ': ') + ExceptionDetail()) + '; trying again in 2 seconds.')
  time.sleep(2)
  return MySend1(request_path, payload, content_type, timeout, force_auth, **kwargs)

def MySend ( request_path , payload = None , content_type = 'application/octet-stream' , timeout = None , force_auth = True , ** kwargs ) : try : return MySend1 ( request_path , payload , content_type , timeout , force_auth , ** kwargs ) except Exception as e : if ( ( type ( e ) != urllib2 . HTTPError ) or ( e . code != 500 ) ) : raise print >> sys . stderr , ( ( ( ( 'Loading ' + request_path ) + ': ' ) + ExceptionDetail ( ) ) + '; trying again in 2 seconds.' ) time . sleep ( 2 ) return MySend1 ( request_path , payload , content_type , timeout , force_auth , ** kwargs )
run mysend1 maybe twice .