Added variable swapping module

This statement has the same issue.
self.changed |= key != item || ret[key] != obj[item]