Pythonize example; few segfaults