python refactoring sample