Python script to check the existence of kblocks in many, many graphs