Finished adding support for handling Python exceptions.