Python shell in a Qt widget