interface segregation principle python example