Fix major bug in cnet.pyx, add double pole balance