Limit recursion depth while printing Pairs
Flatten iteration over dict and list
Handle non-iterable types in For, add default value to dict.get