Add pure-python comparison to ipython magic example 

See ipython/ipython#5560 for more