Got rid of python-reference bug in utils.noisy_toric_code_sim