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