Fixed the tutorial for extending python