Use new except syntax (Python 2.6+/3.x)