Checking in some c++ and python codes