Python, Split a string by whitespaces, similar to awk
<p>I need to split the string based on whitespaces:</p>

<pre><code>mystring = ['1      SLES11 SP1 64bit            [datastore1] SLES11 SP1 64bit/SLES11 SP1 64bit.vmx   sles11_64Guest          vmx-08  ']
#Removes white spaces
mystring.strip()
</code></pre>

<p>I want to achieve, similar to awk output :</p>

<pre><code># awk '{print $1, $2}' mystring
1 SLES11 SP1 64bit
</code></pre>

<p>I need to push the output similar to awk to array and read data.</p>

<p>Thanks in advance.</p>
