from .pyzz import * def _extend_to_power_of_2(wires, w): # can be done faster, but its not worth the cryptic code for next_power_of_two in xrange(len(wires)): if 1<= len(wires): next_power_of_two = 1<