title: How to flatten a hetrogenous list of list into a single list in python?
body: <p>I have a list of objects where objects can be lists or scalars. I want an flattened list with only scalars.
  Eg:</p>
  
  <pre><code>L = [35,53,[525,6743],64,63,[743,754,757]]
  outputList = [35,53,525,6743,64,63,743,754,757]
  </code></pre>
  
  <p>P.S. The answers in this question does not work for heterogeneous lists. <a href="https://stackoverflow.com/questions/406121/flattening-a-shallow-list-in-python">Flattening a shallow list in Python</a></p>