I don't think you need to import `os.path` here, your import of `os` should be sufficient.