I use the freeware editor ConText (for Windows only I'm afraid) from http://www.fixedsys.com/context/.
It includes language highlighters for a lot of languages including python. It also allows customisation to execute a command using the loaded files (e.g. execute the loaded python script) then capture the output and decode the line numbers where the problem occurred.
Dave Moor