Referencing a string that is located in memory?
===

I wrote a simple program to read through a log and to parse through and obtain the lowest beginning number (the head) and to print it. I am not editing that program and combining it with a class I wrote to parse an actual logile. Essentially, as opposed to sorting based off of the simple number from the log from my previous program, I now need to reference the parsed information form one class into another class. I was wondering what the most convenient way to do this. I am a beginner programmer in python and don't know if I can explicitly reference the class. 

Here are the classes.

Parser

    class LogLine:
    
        SEVERITIES = ['EMERG','ALERT','CRIT','ERR','WARNING','NOTICE','INFO','DEBUG']
        severity = 1
    
    
    def __init__(self, line):
        try:
            m = re.match(r"^(\d{4}-\d{2}-\d{2}\s*\d{2}:\d{2}:\d{2}),?(\d{3}),?(\s+\[(?:[^\]]+)\])+\s+[A-Z]+\s+(\s?[a-zA-Z0-9\.])+\s?(\((?:\s?\w)+\))\s?(\s?.)+", line)
            timestr, msstr, sevstr, self.filename, linestr, self.message = m.groups()
            self.line = int(linestr)
            self.sev = self.SEVERITIES.index(sevstr)
            self.time = float(calendar.timegm(time.strptime(timestr, "%Y-%m-%d %H:%M:%S,%f"))) + float(msstr)/1000.0
            dt = datetime.strptime(t, "%Y-%m-%d %H:%M:%S,%f")
        except Exception:
            print 'error',self.filename


def get_time(self):
    return self.time
def get_severity(self):
    return self.sev
def get_message(self):
    return self.message
def get_filename(self):
    return self.filename
def get_line(self):
    return self.line

Sorter

    class LogFile:
    
        def __init__(self,filepath):
            self.logfile = open(filepath, "r")
            self.head = None
    
        def __str__(self):
            return "x=" + str(self.x) + "y="+str(self.y)
    
        def readline(self):
            if self.head != None:
                h = self.head
                self.head = None
                return h
            else:
                return self.logfile.readline().rstrip(' ')
    
        def get_line(self):
            if self.head == None:
                self.head = self.readline().rstrip(' ')
                return self.head.get.line()
            else:
                return self.head.get.line()
    
        def close (self):
            self.logfile.close()

I have begun to edit my second class by adding the get_line function. Don't know if I'm on the right track.

In simpler terms, I need the head to become "LogLine"