I assume the data is stored in the database, in which case when you load it (no matter if I'm using it or not), it will be a list instead of dict as you expect. An alternative to creating an upgrade script, is to make the code resilient to both cases). This way, you can even upgrade load balanced environment very nicely without downtime.