spfquery.pyspf: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/spfquery.pyspf - from package: spf-tools-python

You may install the required package with command apt-get install {package}
Error in other languages:
spfquery.pyspf: bevel nie gevind nie
spfquery.pyspf: comandă negăsită
spfquery.pyspf: comando não encontrado
spfquery.pyspf: commande introuvable
spfquery.pyspf: command not found
spfquery.pyspf: käsku ei ole
spfquery.pyspf: không tìm thấy lệnh
spfquery.pyspf: komanda nerasta
spfquery.pyspf: Kommando nicht gefunden.
spfquery.pyspf: kommandot finns inte
spfquery.pyspf: komut yok
spfquery.pyspf: nie znaleziono polecenia
spfquery.pyspf: níor aimsíodh an t-ordú
spfquery.pyspf: no se encontró la orden
spfquery.pyspf: no s'ha trobat l'ordre
spfquery.pyspf: opdracht niet gevonden
spfquery.pyspf: parancs nem található
spfquery.pyspf: perintah tidak ditemukan
spfquery.pyspf: príkaz nenájdený
spfquery.pyspf: příkaz nenalezen
spfquery.pyspf: команда не найдена
spfquery.pyspf: командата не е открита
spfquery.pyspf: 命令找不到
spfquery.pyspf: コマンドが見つかりません