self python lib