move file descriptor redirecting to Cython.Utils package and use it as context manager in test runner