If else statement error in Python : <p>I keep getting the error Invalid syntax on the first elif. I am pretty sure the syntax is right, but I have no clue why I keep getting this error.</p>

<pre><code>def make_tracker(self):
        self.region = re.search(r'CLI Command: \'show system information\'',line)
        if self.region:
          self.region = "show system information"
          return self.region

        self.region = re.search(r'CLI Command: \'show card detail\'',line)
        elif self.region:
          #The error is on the elif statement it self ^
          self.region = "CPM or IOM"
          return self.region

        self.region = re.search(r'CLI Command: \'show mda detail\'',line)
        elif self.region:
          self.region = "MDA"

        else:
          print"Could not Enter any of the regions"
</code></pre>
