Limit Permissions Based On "User Status" - Python

I’m seeing one for subs now, but not for followers. You’re referring to this correct?

Would you or anybody else be able to provide a code example oh how to tell when a message if from a user that is a sub or follower?