def parse_netpath(netpath):
    """Parse ``netpath`` string containing host-name and script-path into a
    tuple of ``(netloc, script-path)``. If script-path is absent, return
    ``(netloc, '')``."""
    parts = netpath.split('/', 1)
    netloc = parts.pop(0)
    script = '/' + (parts.pop(0) if parts else '')
    return netloc, script
