Stable iteration order for Python 2/3 See merge request !301 (cherry picked from commit e43fa8bc) 63eb76a8 Stable iteration order for Python 2/3 2b62cebb Fixed formatting