String To List Conversion In Python Class