add option for ipython console

This enables an IPython shell (instead of the default interactive python interpreter) to be started from the py module by passing it the --ipython command line option.