try - except is compatible with py3k.

try - except e, arg: was not compatible with py3k.
Instead, use sys.exc_info().