add NotImplementedError exceptions to Python example