Log Message: Fix py-curses with python 3.10 . The fix has been tested with python versions 2.7 3.6 3.9 and 3.10 .