It shouldn't be a problem, I assume it only depends on the stdlib and as long as the path for the Kindle userstore is configurable

it can easily be run on any Linux system with Python 2 installed... like the Kindle.
Simply wrapping the executable call in a KUAL button is the easiest part, really.
EDIT: Nope.

Actually, NiLuJe's python for Kindle build doesn't include PIL. And, compiling binary extensions for the Kindle is fun...