new_contents: from bs4 import BeautifulSoup as Soup
  import urllib2
  
  def schedule(url, teamname):
      '''
      Takes an url and a teamname.
      Retruns teams schedule
      '''
  
  
      html = urllib2.urlopen(url)
  
      soup = Soup(html)
  
      rows = soup.find("table").find('tbody').find_all('tr')
  
      upcoming = []
  
      for row in rows:
  	    cells = row.find_all('td')
  	    for matches in cells:
  	        if teamname in matches:
  	            date = cells[0].get_text()
  	            time = cells[1].get_text()
  	            location = cells[2].get_text()
  	            team1 = cells[3].get_text()
  	            team2 = cells[4].get_text()
  	            upcoming.append( [date + ' ' + time + ' ' + location + ' ' + team1 + ' vs ' + team2])
  	
      return upcoming
  
subject: Create schedule.py