title: How to re-arrange string lines in python
body: <p>I have string like below mentioned and contain n number of lines per group  and I would like to arrange the string as mentioned below ..</p>
  <pre><code>real   51.85ms
  sys    22.41ms
  usr    29.70ms
  [www.ms786.com] 2345 sunset follow
  Multidd    567890KB
  
  real   61.85ms
  sys    32.41ms
  usr    27.70ms
  [www.ms586.com] 4345 sunset follow
  Multidd    4567890KB
  
  real   51.85ms
  sys    12.41ms
  usr    41.70ms
  [www.ms186.com] 7345 sunset follow
  Multidd    8967890KB
  </code></pre>
  <p>TO</p>
  <pre><code>[www.ms786.com] 2345 sunset follow
  Multidd    567890KB
  real   51.85ms
  sys    22.41ms
  usr    29.70ms
  Multidd    567890KB
  
  [www.ms586.com] 4345 sunset follow
  Multidd    4567890KB
  real   61.85ms
  sys    32.41ms
  usr    27.70ms
  
  [www.ms186.com] 7345 sunset follow
  Multidd    8967890KB
  real   51.85ms
  sys    12.41ms
  usr    41.70ms`
  </code></pre>
  <p>Could you help how it can be reshuffled in the string itself. Will really appreciate your help</p>