Using linux capabilities to drop privileges in python.
Github project: https://github.com/stephane-martin/deescalate
Documentation: http://deescalate.readthedocs.org/
License: GNU LESSER GENERAL PUBLIC LICENSE v3
Nota bene: you should use systemd instead. Check https://prog2017.rmll.info/IMG/pdf/2017-07-05_rmll2017_durcissement_avec_systemd.pdf