Could be done more simply as:

    elif atype == "access" or acl.tag_type == posix1e.ACL_MAS:
        return