pluggy

plugin and hook calling mechanisms for python

Here are some articles that you may find helpful