title: Split records based on a space or a tab using csvreader
body: <p>I have a record file an example record looks like this:</p>
  
  <pre><code>122792 2014-07-26   1672
  </code></pre>
  
  <p>The first two records are separated by space the second two by a tab space. How can I make the csvreader read all three column?
  I tried something like this but it didn't work:</p>
  
  <pre><code>with open(path, 'rb') as csvfile:
      dialect = csv.Sniffer().sniff(csvfile.read(), delimiters= [' ','\t'])
      csvfile.seek(0)
      reader = csv.reader(csvfile, dialect)
      for row in reader:
          print row
  OUTPUT:
  ['122792 2014-07-26', '1672']
  </code></pre>