Trying to split out a character from a bash "list"
<p>So I have this command that runs the following report in your shell; </p>

<pre><code>Command output 
Available Reports for: isl-01-chi Time Zone: CDT
================================================================================
|ID       |FSA Job Start              |FSA Job End                |Size        |
================================================================================
|313      |Aug 21 2016, 10:00 PM      |Aug 22 2016, 12:33 AM      |1.040G      |
--------------------------------------------------------------------------------
|318      |Aug 22 2016, 10:00 PM      |Aug 23 2016, 12:35 AM      |1.039G      |
--------------------------------------------------------------------------------
|323      |Aug 23 2016, 10:00 PM      |Aug 24 2016, 12:34 AM      |1.045G      |
--------------------------------------------------------------------------------
|328      |Aug 24 2016, 10:00 PM      |Aug 25 2016, 12:35 AM      |1.043G      |
--------------------------------------------------------------------------------
|333      |Aug 25 2016, 10:00 PM      |Aug 26 2016, 12:57 AM      |1.057G      |
--------------------------------------------------------------------------------
|339      |Aug 26 2016, 10:00 PM      |Aug 27 2016, 03:01 AM      |2.183G      |
--------------------------------------------------------------------------------
|346      |Aug 28 2016, 07:24 AM      |Aug 28 2016, 11:53 AM      |2.183G      |
--------------------------------------------------------------------------------
|351      |Aug 28 2016, 10:00 PM      |Aug 29 2016, 02:37 AM      |2.182G      |
================================================================================
</code></pre>

<p>What I'm looking to do is find the latest ID (Greatest number) and was wondering what the easiest method of doing this was in python ?</p>

<hr>

<h2> </h2>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>data="..." #// Load Your Shell output
l=[]
Output=""
MaxID=0
for a in data.split("\n"):
  id=a.split()[0][1:]
  l.append(id)
  if max(l)==id:
    Output=a
    MaxID=id
print MaxID,Output</code></pre>
</div>
</div>
</p>

<p>##</p>

python