parameters: (url_host, bport,eport)
docstring: Locate the first unused port on url_host in the interval [bport,eport]. Returns 
      the port number if successful. Throws NoPortAvailableException otherwise.
docstring_summary: Locate the first unused port on url_host in the interval [bport,eport]. Returns 
      the port number if successful. Throws NoPortAvailableException otherwise.
docstring_tokens: Locate the first unused port on url_host in the interval [ bport eport ] . Returns the port number if successful . Throws NoPortAvailableException otherwise .
function: def first_available_port(url_host, bport,eport):
      """Locate the first unused port on url_host in the interval [bport,eport]. Returns 
      the port number if successful. Throws NoPortAvailableException otherwise."""
      
      for p in range(bport, eport+1):
          if is_port_available(url_host, p):
              return p;
      raise NoPortAvailableException(url_host, bport, eport)
function_tokens: def first_available_port ( url_host , bport , eport ) : for p in range ( bport , eport + 1 ) : if is_port_available ( url_host , p ) : return p raise NoPortAvailableException ( url_host , bport , eport )