title: How do I read/write both xlsx and xls files in Python?
body: <p>I have a web application (based on Django 1.5) wherein a user uploads a spreadsheet file. </p>
  
  <p>I've been using <code>xlrd</code> for manipulating xls files and looked into <code>openpyxl</code> which claims to support xlsx/xlsm files. </p>
  
  <p>So is there a common way to read/write both xls and xlsx files? </p>
  
  <p>Another option could be to convert the uploaded file to xls and use <code>xlrd</code>. For this I looked into <code>gnumeric</code> and <code>ssconvert</code>, this would be favorable since all my existing code in written using xlrd and I will not have to change the existing codebase.</p>
  
  <p>So should I change the library I use or go with the conversion solution?</p>
  
  <p>Thanks in advance. </p>