I altered the __init__.py.
Now it's in the form of
from tm_addRig import tm_addRig
and not empty anymore.
In this case the first appearance is the file name (module), the second is the def name.
If the shelf tool is altered to:
import tm_rigging reload(tm_rigging) tm_rigging.tm_addRig()
it works.