This still needs to be changed to using os.splitext