Minor changes to sample.pyx.