PyDSL exception handling

Re-raise rendering errors as our own exception class.