tools write by python