m2shpy: 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/share/doc/mongrel2-core/examples/python/bin/m2shpy - from package: mongrel2-core

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