Sigmoid for ony_the_fly example. Py3 fixes.