Changes needs to be a dict, not a set, this also fixes a python

2.6 potential error