title: Python: Select subset from list based on index set
body: <p>I have several lists having all the same number of entries (each specifying an object property):</p>
  
  <pre><code>property_a = [545., 656., 5.4, 33.]
  property_b = [ 1.2,  1.3, 2.3, 0.3]
  ...
  </code></pre>
  
  <p>and list with flags of the same length</p>
  
  <pre><code>good_objects = [True, False, False, True]
  </code></pre>
  
  <p>(which could easily be substituted with an equivalent index list:</p>
  
  <pre><code>good_indices = [0, 3]
  </code></pre>
  
  <p>What is the easiest way to generate new lists <code>property_asel</code>, <code>property_bsel</code>, ... which contain only the values indicated either by the <code>True</code> entries or the indices?</p>
  
  <pre><code>property_asel = [545., 33.]
  property_bsel = [ 1.2, 0.3]
  </code></pre>