minor tweaks to python circulant code