code: def loadSVrecs(fname, uselines=None, skiprows=0, linefixer=None, 
                 delimiter_regex=None, verbosity=DEFAULT_VERBOSITY, **metadata):
      if delimiter_regex and isinstance(delimiter_regex, types.StringType):
          import re
          delimiter_regex = re.compile(delimiter_regex) 
      [metadata, inferedlines, WHOLETHING] = getmetadata(fname, skiprows=skiprows,
                                                  linefixer=linefixer, 
                                                  delimiter_regex=delimiter_regex, 
                                                  verbosity=verbosity, **metadata)
      if uselines is None:
          uselines = (0,False)
      if is_string_like(fname):
          fh = file(fname, 'rU')
      elif hasattr(fname, 'readline'):
          fh = fname
      else:
          raise ValueError('fname must be a string or file handle') 
      for _ind in range(skiprows+uselines[0] + metadata['headerlines']):
          fh.readline()
      if linefixer or delimiter_regex:
          fh2 = tempfile.TemporaryFile('w+b')
          F = fh.read().strip('\n').split('\n')
          if linefixer:
              F = map(linefixer,F)
          if delimiter_regex:
              F = map(lambda line: 
                      delimiter_regex.sub(metadata['dialect'].delimiter, line), F)       
          fh2.write('\n'.join(F))        
          fh2.seek(0)
          fh = fh2        
      reader = csv.reader(fh, dialect=metadata['dialect'])
      if uselines[1]:
          linelist = []
          for ln in reader:
              if reader.line_num <= uselines[1] - uselines[0]:
                  linelist.append(ln)
              else:
                  break
      else:
          linelist = list(reader)
      fh.close()
      if linelist[-1] == []:
          linelist.pop(-1)
      return [linelist,metadata]