learning write python tools