python: Better handle backup_files()