dont use split() but os.path.splitext()