Is there any chance of this being a .pyc/.pyo/.pyd? Probably not, but perhaps ```os.path.splitext()[0]``` would be safer.