flake8 cleanup
Added display_type field and corresponding setting
Released v0.4