Modified the advisors/preferences view to be less hardcoded, and made advisors/views PEP8-compliant.