Using izip_longest instead of map(None, ...) because 2to3 fails with map(None, ...).