doc errors
be clever about dict order in doctests