They are called the same, but KV_extract.py could (if path is set or absolute) be imported as well, just call ExtractKernelVersion(filename) which is meant to be a Makefile. Improvements over KV_extract.awk are much better error reporting (line and line number of offending duplicates)
Please also note bug 2431, also related to KV variable.