work in progress on printing a nested dictionary