The molecular machines that loop chromosomes also twist DNA