Fix style of exception handler

http://docs.python.org/2/tutorial/errors.html#handling-exceptions

"except ValueError, e: was the syntax used for what is normally written
  as except ValueError as e: in modern Python (described below). "