You need to edit the language definition file to add a new section. The definition of language is python.langalso for me /usr/share/gtksourceview-2.0/language-specs.
First you need to add a style for the identifier of the style that you are going to create:
<style id="class-name" _name="Python Class Name" map-to="def:type"/>
<context-id="python":
<context id="class-name" style-ref="class-name" style-inside="true">
<start>\%{string-prefix}def\ </start>
<end>\(</end>
<include>
<context ref="python"/>
<context ref="format"/>
<context ref="escaped-char"/>
</include>
</context>
style-inside="true", def (, . :
() "true", ; .
, gedit, , , . AttributeError . map-to , , .
, , , gedit, , - , python .
:
, "def". " " ( ) " ", , , . , .
:

, :
