Python Variable Not Defined In List Comprehension In Pandas