changed implementation to show python interpretor prompt. Instead of gets in session.rb, used readpartial to get all the data