Function `get_kernel_sources` has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. https://codeclimate.com/github/gentoo/elivepatch-server/src/elivepatch_server/resources/livepatch.py#issue_5d277a45d24643000100001c