Python module in C sample implementation.