No caso estou utilizando uma função de aparecer somente o pix:
# encoding: utf-8
from efipay import EfiPay
from credentials import credentials
import base64
efi = EfiPay(credentials.CREDENTIALS)
params = {
'id': 28
}
response = efi.pix_generate_qrcode(params=params)
# Print only the 'qrcode' attribute
if 'qrcode' in response:
print('--------->PIX AQUI<---------\n' + response['qrcode'])