useful c++, incomplete python