Why are we changing the exception type? Is Exception ok in python? Normally doing this in Java is a code smell.