Exception handling: Adds a PymillException as a base class for all exceptions.