fix bug in speciate. currently, node_delete and conn_delete can successfully work
use black to format all files!