Unique module identifier

Ah OK, in that case your code might work, but I would probably just pass a unique identifier to the hook and store the stats using this identifier as the key to the dict as seen here.