KSP tools for Python