Return path relative to base.

def rel_path(base, path):
    """Return path relative to base."""
    if base == path:
        return ''
    assert is_prefix(base, path), "{} not a prefix of {}".format(base, path)
    return path[len(base):].strip('.')