A simple torController module in python