Inversion Of Control Python Programming