Problem with parent

When I make a parent with a Python script, the position of the child object changes.

Why and how do to not change the position of the child object ???

Thank you, it’s very important…