File backup in Python