Changed the grouper function to use zip() instead of izip_longest.