Python koşullu durumlarda sorun yaşıyorum

import speech_recognition as sr
import time
import os

while True:
r = sr.Recognizer()
with sr.Microphone() as source:
os.system(“cls”)
print(“Listening…”)
audio = r.listen(source)
text = r.recognize_google(audio, language=“en”)
try:
print("You said: " + text)
except sr.UnknownValueError:
print(“I couldn’t understand sir!”)
except sr.RequestError as e:
print(“I couldn’t connect to the services!; {0}”.format(e))

if "open" and "music" in text:
    os.system("spotify")
elif "close" and "music" in text:
    os.system('taskkill /f /im "Spotify.exe"')

Merhaba kodlar bu şekilde bakın if bloğunda open and music text içinde ise spotify komutunu çalıştırmalı ve bunu yapıyor ancak elif bloğunda close and music text içinde ise bölümünü kullanırken de spotifyı açıyor. yani kapatmıyor

bu asistan projemin başlangıç biçimi ve normalde ne dediğimde ne yapacağını tek tek yazdım fakat daha bir fonksiyonda 192 satır oldu bu yüzden bunu yapmak işimi oldukça kolaylaştıracak teşekkürler

if "open" and "music" in text:

=

if ("open") and ("music" in text):

=

if "music" in text:

.

Kosulun muhtemelen "open" in text and "music" in text olmasi gerekiyor.

seni çok çok çok çok çok çok çok çok seviyorum teşekkür ederim adamsın sen