From C to Python by Ross Rheingans-Yoo