ENH: Implemented AutowrapException in wrap_lib

I just copied [this] (https://docs.python.org/2/tutorial/errors.html#user-defined-exceptions) from the python docs. Which would you prefer?