Script not running correctly after couple months idle

Hi All
At the start of the year I wrote a simple script for my raspberry pi that showed system stats (cpu usage, memory etc)
I write the script in Python 3.9 and used libraries like psutil, and curses to make the system stats display almost like a standalone program not just the standard CLI. Different font colours etc and no command line.

The program ran well when I initially ran it and had it on for a few weeks. Since then I have not even powered the pi on until yesterday and although the program ran from the CLI command, it did not display as it used to do via curses, it just displayed the system stats in the terminal / CLI.

What would be a reason for this? Does curses need an upgrade? If so how would I do this?

Any help would be appreciated
Thanks in advance
bpt