Python3 changes dict iteration order