#!/usr/bin/env python3

import sys
import os
import shutil

for root, dirs, files in os.walk('.', topdown=True):
    for name in files:
        if name.endswith(".debsave1"):
            shutil.move(os.path.join(root, name), os.path.join(root, name[:-9]))
