compose class for toolkits in tool.py