A simple Python IOC framework