Pipe() could be replaced by os.pipe and Minilogger could be repalced by print or another built in function. This code is useless.