Update code for launching an IPython shell
Remove pointless util function