Use range() instead of xrange() in order to slice the list.  Change YearRange to year_range
Use range() instead of xrange() in order to slice the list.  Change YearRange to year_range

soccermetrics/marcotti