code: def superReadFile(filepath, **kwargs):
      
      if isinstance(filepath, pd.DataFrame):
          return filepath
  
      ext = os.path.splitext(filepath)[1].lower()
  
      if ext in ['.xlsx', '.xls']:
          df = pd.read_excel(filepath, **kwargs)
  
      elif ext in ['.pkl', '.p', '.pickle', '.pk']:
          df = pd.read_pickle(filepath)
  
      else:
          # Assume it's a text-like file and try to read it.
          try:
              df = superReadText(filepath, **kwargs)
          except Exception as e:
              # TODO: Make this trace back better? Custom Exception? Raise original?
              raise Exception("Error reading file: {}".format(e))
      return df
docs: Uses pandas.read_excel (on excel files) and returns a dataframe of the
      first sheet (unless sheet is specified in kwargs)
      Uses superReadText (on .txt,.tsv, or .csv files) and returns a dataframe of
      the data. One function to read almost all types of data files.