OGL : LineShape questions

Hi,

I have a program in which I would like to select a line by clicking on it. I
have the following method:

def OnLeftClick(self, x,y,keys,attachments):
        shape = GetShape()
        print "The shape is ",shape
        shape.Select(True, self.dc)
        # do something with the selected shape

The code works well with other shapes eg. circles and rectangles but it doesn't
work with lines. When I left click on a line, nothing is put in the shape
variable. Is there a way around this?

Also, I have tried to use GetLines() to get the line connected to a shape and I
end up getting a list with more than the number of lines. For example if I have
2 circles connected by one line and I do shape.GetLines() on one shape, I end up
getting 3 line instances in a list. Why?