Python script to extract methods from a C++ class