some tools code with Python