title: removing brackets from list elements python
body: <p>I am a python newbie; it is highly likely someone has asked a similar question, though I can't find one.  When I query for objects from a model created in another program I get a list like this: </p>
  
  <pre><code>lineObj = [obj for obj in model.objects if obj.type == OF.otLine]
  
  print lineObj
  [&lt;Line: 'Upper1'&gt;, &lt;Line: 'Upper2'&gt;, &lt;Line: 'MooringLine'&gt;, &lt;Line: 'BuoyLine'&gt;, &lt;Line: 'RiserLine1'&gt;, &lt;Line: 'RiserLine2'&gt;, &lt;Line: 'AnchorLine1'&gt;, &lt;Line: 'AnchorLine2'&gt;, &lt;Line: 'AnchorLine3'&gt;]
  
  print lineObj[0] 
  &lt;Line: 'Upper1'&gt;
  </code></pre>
  
  <p>I would like to be able to pull only the text Upper1, Upper2, etc., but I am not sure how. It may be better to use a dictionary or something else.  Thanks in advance for any feedback. </p>