old_contents: import subprocess
  import sys
  import unittest
  
  
  class StyleTest(unittest.TestCase):
      "run flake8 with the right arguments and ensure all files pass"
      def test_style(self):
          try:
              subprocess.check_output(['flake8', '--ignore=F', 'raco'],
                                      stderr=subprocess.STDOUT)
          except subprocess.CalledProcessError as e:
              print >> sys.stderr, e.output
              raise
  
new_contents: import subprocess
  import sys
  import unittest
  
  
  def check_output_and_print_stderr(args):
      """Run the specified command. If it does not exit cleanly, print the stderr
      of the command to stderr"""
      try:
          subprocess.check_output(args, stderr=subprocess.STDOUT)
      except subprocess.CalledProcessError as e:
          print e.output
          raise
  
  
  class StyleTest(unittest.TestCase):
      "run flake8 with the right arguments and ensure all files pass"
      def test_style(self):
          "run flake8 with the right arguments and ensure all files pass"
          check_output_and_print_stderr(['flake8', '--ignore=F', 'raco'])
  
      def test_pylint(self):
          "run pylint -E to catch obvious errors"
          check_output_and_print_stderr(['pylint', '-E', 'raco'])
subject: add pylint and move output to test failure