Peter > ... put the failing code in a function ... This line of code is already inside some function! s = sys.stdin.read(4) Causes this PyChecker error: IOError: [Errno 9] Bad file descriptor Any other ideas are greatly appreciated. Thanks. Olaf