Fix dict representation so it works on python 2.6.