def zip_longest(*args, **kwargs):
    """
    https://docs.python.org/3.5/library/itertools.html#itertools.zip_longest
    """
    try:
        from itertools import zip_longest
        return zip_longest(*args, **kwargs)
    except ImportError:
        from itertools import izip_longest
        return izip_longest(*args, **kwargs)
