snap-python functionality for segmented bfs

Main changes are in snapsw.h.   Also I changed a name or two in the original code to make it clearer.