Add twisted on setup.py
some refactors to enable console script