title: string suffix replacement in python
body: <p>i know how to make string replacements in python but I need a way to replace only
  if the sequence is located at the end of the word.
  for example:</p>
  
  <pre><code>rule: at -&gt; ate
  so:
  cat -&gt; cate
  but:
  attorney -&gt; attorney
  </code></pre>
  
  <p>thanks.</p>