Update metaclass to Python-3 style declarations.
Migrate SECRET_KEY settings key to explicit state

From now on, a SECRET_KEY in settings should be used explicitly
in the configurations if a secret key is actually required.