For python scripting, drpython or geany would work better than kate without the need to make changes. Nothing against kate, which is a good text editor, but that these 2 are more suited to developing python from the first. Each also has an integrated test feature that will help you to track down bugs. I have used both and find them to be excellent tools.
If you install geany, install geany-plugins, too.