Refactored views based in pyflakes
refactoring