title: SyntaxError: invalid syntax
body: <p>i have a syntax error in my code i dont no understand 
  i need help for this I do not see my error</p>
  
  <pre><code>      headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537)'}
        session = requests.Session()
        response = session.get(olinks, headers=headers)
        soup = BeautifulSoup(response.content)
        oname = soup.find("title")
        if oname.text.find('Saison') &gt;= 0:
            regexp = r'(.*?\s+-\s+S)aison\s+(\d+)\s+\xc9.*?(\d+)(.*)'
            subst = "{title} {season:02d} Ep {episode}"
        else:
            regexp = r'(.*?\s+-)(\s+)\xc9.*?(\d+)(.*)'
            subst = "{title} Ep {episode}"
        oname_cleanedup = re.sub(regexp, 
                           lambda m: subst.format(title=m.group(1), season=int(m.group(2)) if m.group(2).find(" ")==-1 else "", episode=m.group(3))
               oname.text)
  </code></pre>
  
  <p>sorry </p>
  
  <pre><code>File "start.py", line 41
      oname.text)
          ^
  SyntaxError: invalid syntax
  </code></pre>