Python Print Text Undo Command Z