Python3 syntax

correct except syntax for python3