Playing around with IPython, calculate some stats