with open('C:/Users/visc/scratch/scratch_child/test.txt') as f:
    for line in f:
        drive, path = os.path.splitdrive(line)
path, filename = os.path.split(path)
Splitting path strings into drive, path and file name parts