title: Python double backslash issue
body: <p>I'm using python scripts to send hundreds of thousands of insert queries to an sql server belonging to another system.  </p>
  
  <p>An example of my inserts:</p>
  
  <pre><code>"INSERT INTO ImportData (ISBNORISSNORURL, FILENAME, PDFLOCATIONS, PROCESSED) VALUES('0442019521', 'pinto_1995_245_hires.pdf', 'I:\\Collect and Process Data\\Licensing Schemes Processing\\03 Data Preparation Original\\USQ\\September-October 2010\\pinto_1995_245_hires.pdf','0');"
  </code></pre>
  
  <p>The file path string is assigned to a global:</p>
  
  <pre><code>PDFLOCATIONS = "I:\Collect and Process Data\Licensing Schemes Processing\03 Data Preparation Original\USQ\September-October 2010"
  </code></pre>
  
  <p>And this is then added to a dictionary consisting of name/value pairs which match up with the field and value data in the insert query.  These are converted to strings of data:</p>
  
  <pre><code>final_header_list = str(fields_value_list.keys()).replace("[","").replace("]","").replace("'","")
  
  final_values_list = str(fields_value_list.values()).replace("[","").replace("]","").replace("'","")
  </code></pre>
  
  <p>Which are then added to the final insert string:</p>
  
  <pre><code>insert_query = 'INSERT INTO {0} ({1}) VALUES({2});'.format(TABLE,final_header_list,final_value_list)
  </code></pre>
  
  <p>Which is sent to sql server in groups of 10000.</p>
  
  <p>The double backslash goes through to the database as a double backslash rather than magically converting to a single backslash.  I'm apparently not allowed to use a forward slash as an alternative.  Is there any alternative method of getting the desired single backslash on my end?  Or will the administrators of the SQL server instance have to make the change on their end?</p>
  
  <p>Many thanks!</p>