Start reproducing c++ test case in python