some tools code written in python