updated alarm python scripts