To receive your device messages in a Logic App, Service Bus is definitely a valid option. However to send messages back to your device, you have two options:
- Cloud to Device messages
- Direct Methods
On the device side, there are good samples for C2D messages and Direct Methods available in Python. If I was going to run a script because the cloud told me so, I would go for a Direct Method. To make a decision between C2D and Direct Method, try this documentation.
That brings me to the Logic App, you don't need to use a Service Bus to communicate with your devices. You can use either an HTTP request or the SDK for a Direct Method, or you can use the SDK for a Cloud to Device message. It is completely possible to do an HTTP request for a direct method using this call in a Logic App. But if you do have some affinity with Python, you might want to look into using the Python SDK in an Azure Function instead. Functions can be triggered by the Service Bus Queue you already have, but you're left with the flexibility of writing code to achieve your goal.
Sorry for the documentation-heavy answer, hope this helps!