menuconfig: Fix some nits reported by flake8
menuconfig: Fix some nits reported by flake8

 - Remove some unused imports

 - Replace a lambda with a plain function

 - Shorten some long lines

 - Remove some redundant backslashes within brackets

ulfalizer/Kconfiglib,ulfalizer/Kconfiglib