Update Python code to work with the new backup format.