def default_port(scheme):
    """Returns default port for a given scheme (https or http) as string."""
    if scheme == "https":
        return "443"
    elif scheme == "http":
        return "80"
    assert False