Change resources to use mixin for account app

While I'm here do a PEP8 cleanup in the admin file.