Bitwise permissions in Python (and Django)
noehr.org