Adds python profiling extensions

Gives the ability to run line_profiler and
memory_profiler from within ipython

Based on this post:
http://pynash.org/2013/03/06/timing-and-profiling.html