backup.py: changes suggested by pylint