Original code, schematics and tutorial in this post by Oscar Liang: http://blog.oscarliang.net/raspberry-pi-arduino-connected-i2c/
Code modified to work on a Raspberry Pi running Arch Linux and using quick2wire/quick2wire-python-api instead of python-smbus