import io import time import subprocess import sys
filename = \'test.log\' with io.open(filename, \'wb\') as writer, io.open(filename, \'rb\', 1) as reader: process =