Add graph_spacer_distr.py and extract_consistent.py, some cleanups