Fix import of compat module in python 3.3.0

In python 3.?, dict order are random, so object attribute are also random!
remove warning in a test.
Merge pull request #1411 from nouiz/py3

Fix import of compat module in python 3.3.0