Got rid of syntax errors
Modified switch to cleanup pins before using them.  Fixed a
lock/unlock bug in RasPi module
RasPi device is working except for possibly the buzzer.  Not sure
if I have hardware setup wrong or not.