cleaning up spin code

note: uncompiled, untested
cleanup python on RPi

note: untested