A lightweight inversion of control container for Python