Simple Python IOC framework