interface segregation principle example python