new_contents: import os.path
  import unittest
  import pep8
  import dlstats
  
  
  class TestPep8(unittest.TestCase):
      """Run PEP8 on all files in this directory and subdirectories."""
      def test_pep8(self):
          style = pep8.StyleGuide(quiet=True)
          #style.options.ignore += ('',)
          dir = os.path.dirname(dlstats.__file__)
          style.input_dir(dir)
          self.assertEqual(style.options.report.total_errors,0)
  
  if __name__=='__main__':
      unittest.main()
  
subject: Add pep8 test