Rewritten with python twisted
Merge pull request #2 from adrianlzt/feature/rewrite_with_twisted

Code rewritten to use python twisted