[PATCH v4] selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3