self python examples