Simple fixes in exception handling to support Python 3