cleaned the python module in tools
clean tools python module