This is the manual students enrolled in the week-long intermediate Raspberry Pi & Python class at the museum receive. Before they take this class they must take an intro to the Pi (1 week) and a shorter introduction to using a port expander or transistor class (I’ll be uploading that manual soon.)
UPDATE: The December 2014 MagPi magazine will feature a shortened version of my project. During the process of review a much improved Python code was suggested. That’s what will appear in the article. For the full manual I’ve included the original code, because I think it is instructive, and the new and improved version.