Local Coordinates Assignment
Within the BGE the (parent)-local coordinates can be read and set via KX_GameObject.localPosition.

When you want to read/modify the orientaion you can use KX_GameObject.localOrientation. Be aware it is a matrix.

If there is no parent, the local coordinates match the world coordinates.