Freestyle was using static PyLongObject's which relied on setting the it's integer value directly. Replace with PyLong_FromLong(..) which is used everywhere else. One reference to the internal integer value needed to be kept because Nature_Type sub-classes PyLong.