add example file to print python exceptions.

Signed-off-by: S.J. Huang <opensjh@gmail.com>