Replaced izip_longest with zip_longest (python 3 equivalent)
Wrap with list. Python 3 dict.values() return a view not a list
In python3, long() doesn't exist, it's unified with int()