add preliminary changes and comments to perms.py