title: replace all "\" with "\\" python
body: <p>Does anyone know how replace all <code>\</code> with <code>\\</code> in python?
  Ive tried:</p>
  
  <pre><code>re.sub('\','\\',string)
  </code></pre>
  
  <p>But it screws it up because of the escape sequence.
  does anyone know the awnser to my question?</p>