If `root` continues to be unused, it shouldn't exist.

Use either `_, ext = os.path.splitext(vfile)` or `ext = os.path.splitext(vfile)[1]`.