Use os.path.join. Change local import to global.