Backup and restore tools with python