Why on earth would you get raspberry pi into the mix with Minecraft modding? Python for mods seems great, but that's just using extra hardware for the sake of it.
I wrote a RaspberryJuice+Python command server so you can have run python functions inside minecraft. [0]