def _open(cgi, params=None, post=None, ecitmatch=False):
 delay = 0.333333334
 current = time.time()
 wait = ((_open.previous + delay) - current)
 if (wait > 0):
  time.sleep(wait)
  _open.previous = (current + wait)
 else:
  _open.previous = current
 params = _construct_params(params)
 options = _encode_options(ecitmatch, params)
 if ((post is None) and (len(options) > 1000)):
  post = True
 cgi = _construct_cgi(cgi, post, options)
 try:
  if post:
   handle = _urlopen(cgi, data=_as_bytes(options))
  else:
   handle = _urlopen(cgi)
 except _HTTPError as exception:
  raise exception
 return _binary_to_string_handle(handle)

def _open ( cgi , params = None , post = None , ecitmatch = False ) : delay = 0.333333334 current = time . time ( ) wait = ( ( _open . previous + delay ) - current ) if ( wait > 0 ) : time . sleep ( wait ) _open . previous = ( current + wait ) else : _open . previous = current params = _construct_params ( params ) options = _encode_options ( ecitmatch , params ) if ( ( post is None ) and ( len ( options ) > 1000 ) ) : post = True cgi = _construct_cgi ( cgi , post , options ) try : if post : handle = _urlopen ( cgi , data = _as_bytes ( options ) ) else : handle = _urlopen ( cgi ) except _HTTPError as exception : raise exception return _binary_to_string_handle ( handle )
open a hnadle to scop .