You will have to use a package like curses to take control of the terminal.  That's what apps like vi use to do their drawing.  That lets you draw strings at specific row and column position.
I had a Python code that print 33 line in terminal, so I want to jump back to line 11 and rewrite all text in that line, how can i do that?
Go to a specific line in terminal using Python