doc examples for python trace package