Made handler simpler
Merge pull request #4 from psav/twisted

Made handler simpler