I would also like to refer to https://stackoverflow.com/questions/5914673
I can confirm the comment of Raphael Rigo, the offending line is "
CFUNCTYPE(c_int)(lambda: None)"

