Added 'user_data' to the external method structure, changed some corresponding functions. Tried adding to C++ API the means to declare a Python method, still ongoing.