Change usages of path. to os.path.