def resolve(path_or_address=None, address=None, *ignored):
    """
    Returns (path, address) based on consecutive optional arguments,
    [path] [address].
    """
    if path_or_address is None or address is not None:
        return path_or_address, address

    path = None
    if split_address(path_or_address)[1] is not None:
        address = path_or_address
    else:
        path = path_or_address

    return path, address
Returns (path, address) based on consecutive optional arguments,
    [path] [address].