Update op.py to new perms system