small fixups

set the libgphoto2 libname using sys.platform

formatting fixes to the serial port sniffer, remove a helper function
fixup