You're reassigning the line variable here, you might want to consider creating a new variable composed of the list of integers.  You're also using a list comprehension, which isn't always covered in a Python tutorial.  Not necessarily a bad thing, but something to be aware of.