new_contents: #!/usr/bin/env python3
  
  import bs4
  import requests
  
  ignore = ['python/cpython']
  
  fmt = """git clone --depth=50 --branch=master {long} ~/{short}
  cd ~/{short}
  # stop the build if there are Python syntax errors or undefined names
  flake8 . --count --select=E901,E999,F821,F822,F823 --statistics
  # exit-zero treates all errors as warnings.  The GitHub editor is 127 chars wide
  flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
  """
  
  url = 'https://github.com/trending?l=Python'
  soup = bs4.BeautifulSoup(requests.get(url).content, 'lxml')  # or 'html5lib'
  repos = soup.find('ol', class_="repo-list").find_all('a', href=True)       # 'python / cpython'
  repos = (r.text.strip().replace(' ', '') for r in repos if '/' in r.text)  # 'python/cpython'
  repos = ({'long': repo, 'short': repo.split('/')[-1]} for repo in repos)   # {'long': 'python/cpython', 'short': 'cpython'}
  print('\n'.join(fmt.format(**repo) for repo in repos if repo not in ignore))
  
subject: Create trending_python_tester.py