Added to kpar and python.c so only master thread logs to screen