changes to conform to IPython coding style