This looks like it is just standard computer floating point error. Your comparison is failing because the value is not exactly 0.2. The python tutorial has a pretty good overview of this issue: http://docs.python.org/tutorial/floatingpoint.html
but it exists in most languages, as most rely on the computers built in floating point arithmetic, and so the same code shouldn’t even work in C++. Python actually hides this effect somewhat, but you can see it in CINT if you just type at the root prompt:
the representation should not be a problem if the value is actually set to 0.2, rather than just being very close to 0.2 (e.g. as the result of a calculation). Point being, the GetX() returns a double and the underlying type of a python float is C double.
For printing all the digits available to python, use repr(ye_x) rather than str(ye_x).