python: Fix skipping tests if running with GnuPG < 2.1.12.