Python: updated 3d part