A python log generator