fix python output to not scroll to bottom (and echo original command)