Update module.py

add routing key resource only if source_type is resource
Merge pull request #5 from timox/master

Update module.py