You can get hold of config via something like
import IPython i = IPython.get_ipython() config = i.config
But can you just mess with config an