Update to handle new python Gapless mode.