gui: improve Python viewer.