# [Tex/LaTex] How to highlight Python syntax in LaTeX Listings \lstinputlistings command

listingspythonsyntax

I am using package listings to import my Python source code into my LaTeX document. I use the command \lstinputlistings. I have a Python source like

class MyClass(Yourclass):
def __init__(self, my, yours):
bla bla bla...


What should I write in my \lstset command in order to highlight words MyClass, __init__ etc.?
I wouldn't want to write any word I want to be highlighted. I tried using moredelims=[s][\color{teal}]{class}{(} inside lstset but it doesn't work.