Simplify python version detection Changes: https://lists.gnupg.org/pipermail/gnupg-users/2017-December/059592.html