'Write a message to the file.'

def log(self, message):

    timestamp = time.strftime('[%H:%M:%S]', time.localtime(time.time()))
    self.file.write(('%s    %s\n' % (timestamp, message)))
    self.file.flush()
