Python Function Reference Variable In Cpp