ksgen/docstring: remove unnecessary import Mapping

Change-Id: Ic7c2e8b6898e94d1e72abbcc035217a951a0fa06
ksgen/docstring: fix crash when --config-dir=.

Fixes the crash when ksgen is passed the  config dir '.'. Fixed
by sanitizing the input path.

Change-Id: I811e28c92b5d9dd3c392297a112dacfab3e75918
ksgen/docstring: fixes alignment of various options

Calculates the width of the Options list and left aligns the keys
properly.

Change-Id: Ia4fe5eb0ef549bfa957650747aa27eb67a343c55
ksgen/log_color: simplified to work only on linux

Change-Id: I75983122e1f2daa41ade1e677477550a94bdae65
ksgen: minor pylint corrections

Corrects most of the important errors and warnings pointed out by
pylint

Change-Id: I0a83d4533ab94a31004282d3cabec88f259e5a2b