python logcutter