Fix compil issue with KICAD_SCRIPTING_WXPYTHON option ON.
Minor enhancements.