title: $ python -bash: /usr/local/bin/python: No such file or directory
body: <p>Python is broken somehow after running a script that rewrites files. I get the error anytime I use it:</p>
  
  <pre><code>$ python
  -bash: /usr/local/bin/python: No such file or directory
  </code></pre>
  
  <p>I did brew doctor:</p>
  
  <pre><code>$ brew unlink python &amp;&amp; brew link python
  </code></pre>
  
  <p>Yesterday I tried to fix it by reinstalling:</p>
  
  <pre><code>$ brew update
  $ brew install python
  $ brew upgrade python
  </code></pre>
  
  <p>Based on what I found it seems like I need to symlink it but I don't want to make it worse and lose the entire OS. </p>
  
  <pre><code>$ which python
  /usr/bin/python
  </code></pre>
  
  <p>How can I fix this Python?</p>