Getting rid of Python 2 on Gentoo

Python 2 is end of life so developers are gradually dropping support for it and you may run into dependency issues on your Gentoo installation. I decided to get rid of Python 2 alltogether by adding a file to /etc/portage/package.use which allows me to disable Python 2 and only allow Python 2 if I really need it:

*/* PYTHON_TARGETS: -python2_7

# exceptions in case they are needed are defined like this:
# dev-libs/libxml2        PYTHON_TARGETS: python2_7