An inversion of control framework for Python applications