docs: def run_pylint(filename):
      """
      Runs pylint on a given file
      :param filename:
      :return: list of pylint errors
      """
      ARGS = [
          '-r',
          'n'
      ]
      pylint_output = WritableObject()
      Run([filename]+ARGS, reporter=TextReporter(pylint_output), exit=False)
  
      lines = []
      for line in pylint_output.read():
          if not line.startswith('*') and line != '\n':
              lines.append(line)
  
      return lines