Oil pump / distributor gear will not come out from the top

Did you try to rotate the gear in the reverse direction with a flat screwdriver?

IIRC that is a factory procedure to reset the gear to the direction you want.