Incorporated IPython/viewer interaction code.
python 3 compatibility changes
Merge pull request #1 from tonyroberts/master

python 3 compatibility changes
Merge pull request #7 from willferreira/master

IPython integration and some Python 3 changes.