I have this Python code:
class Parent(object):
    def __init__(self):
        self.value = 5
    def get_value(self):
        return self.value
Now I must modify the get_value method, and I did this:
class Child(Parent):
    def get_value(self):
        return self.value + 1
As expected, I get this result:
>>> p = Parent()
>>> p.get_value()
5
>>> c = Child()
>>> c.get_value()
6
But I need to get this result:
>>> p = Parent()
>>> p.get_value()
6
In other words, I need to modify the get_value method of Parent class without touching the source code. I've been programming such a long time only in Odoo framework (made with Python 2.7) that I've forgotten things like this, may be this question is duplicated, but I still haven't found a solution.
Can anyone help me, please?

Parentobject if you don't need the behavior of aParentobject? Why do you need this? There is probably a better solution.Childclass if it has the desired behaviour?