Changed way feature flags are interpreted

Configurations must be defined before hand

Reduced pylint violations