added worker.py
jointly contributed by @birajkarmakar @aavrug
Merge pull request #1 from desouradeep/master