Adding display method to better looking output in iPython notebook