Replacing slashes with os.path.join calls