Python script to generate C++ set and get functions from variables