How to wire a set of stand alone Python programs
<p>I have been given a task for eliminating duplicate names in the file below </p>

<p>my.txt:</p>

<blockquote>
  <p>"Amazon.com, Inc"<br>
  AMB Limited<br>
  Ambac Private<br>
  amazon inc<br>
  amb lim<br>
  ambac pvt</p>
</blockquote>

<p>I have done coding in Python for eliminating duplicates in few steps as below (I have done each step in a new Python file):</p>

<p>Step 1: Replacing "Private" with "pvt", "Limited" with "lim" ... etc</p>

<p>Step 2: Removed all special characters and reduced double spaces to single spaces</p>

<p>Step 3: Converted all to lower case</p>

<p>Step 4: Matched and eliminated duplicates</p>

<p>Step 5: Sorted the list in alphabetical order</p>

<p>However, my boss wants me to wire all the programs into a single Python file but I am not familiar with doing this. is there any sample way that you can teach me to wire them up? He wants me to built functions and use content return them.</p>

<p>ex: using <code>if __name__="__main__"</code></p>
