Make codebase python3 compatible.
RF: The format expected by publish_display_data is a list of dicts.
Make codebase python3 compatible.
Merge pull request #79 from isbadawi/python3

Make codebase python3 compatible.
Account for changes in behavior across versions of IPython.
BF: For IPython versions <3