I can confirm that this tutorial works on the Pi using the shell script from here: http://elinux.org/RPi_Low-level_peripherals
This is using ArchLinuxArm, but I wasn't able to get the python code to run, compile yes after changing the system time and installing the following packages:
-python2 and python3
-sudo
-unzip
-sqlite3
-tk
-zlib
-ncurses
-bzip2
-readline
-gdbm
and setuptools-0.6c11-py2.7 which isn't in the repository.