[python mode] Highlight 'self' variable

Closes #2274