BTW If i rewite all the changes you have made to the runtests.py file all doctests und unittests still pass on my system.