Once a shaft like that has been bent, it's very difficult to get it back right. Not that it can't be done, it's just hard, and usually expensive compared to the cost to replace. If you straighten it and don't get it right, the vibration will substantially shorten the life of the u-joints and probably the bearings supporting the PTO output shaft at the tractor.
Dave