A backup rotation script in python