Use os.path.join instead of manually inserting slashes.