Well, it is a regex search. I have no idea how to do that. I am open to suggestions, though. 

~~~~
GPFS_GRACE_REGEX = re.compile(r"(?P<days>\d+)days|(?P<hours>\d+hours)|(?P<expired>expired)")

# snip

grace = GPFS_GRACE_REGEX.search(quota.blockGrace)
~~~~