zbinder
10
I've experienced difficulties doing what I wanted with isAlarmActive() a while ago, though I can't recall exactly what they were.
If you do decide to go the Python route, this post contains a great example of how to get more mileage out of system.alarm.queryStatus().