use python to generate the ctp api struct dumper