Fixes to Python3.x

Capturing the currently raised exception (it doesn't work in Python 2.5 and earlier)

map function returns an iterator

Tuple parameters removed

import izip and exceptions removed