Fixed doctests (can't assume the order in which the items of a dict will be printed)