Handling all the possible cases for interactive mode: interpreters [python, ipython] and supported versions [2.7, 3.4].