adds function for running python/ipython

if no arguments are given then start an ipython
session, otherwise run with normal python