raise syntax changed in python 3