Fabio Nelli has written an excellent tutorial on creating a cluster of Raspberry Pis (just two to start with) and using them to do some parallel programming. He uses the MPI library in Python to set-up communication between the two Pis. It’s a really interesting article which explains a lot about parallel programming and messaging protocols. Read it here.