boost::python - double vs. int - unexpected behavior