oops -- python is making me a bad c++ programmer