this guy: https://github.com/dimagi/django-prbac/blob/master/django_prbac/arbitrary.py has some really useful utils that could be used outside of prbac, so I'm going to add a few to:
https://github.com/dimagi/dimagi-utils/blob/master/dimagi/utils/data/generator.py