explicitly load python mode before IPython mode

ensures IPython mode gets defined at startup, which can sometimes fail because
the Python mode was loaded dynamically.

closes #3636