Fixes for modern mypy.
Fixes for modern mypy.

Make sure to check the types coming from kwargs.

Signed-off-by: Chris Lalancette <281cd07d7578d97c83271fbbf2faddb83ab3791c@openrobotics.org>

clalancette/pycdlib