to_euler takes radians if you want to change the z value, so you need to import math module and use the math.radians(degrees) or the other way math.degrees(radians) in order to set the right amount.
also orientation.z or orientation[2] gives false coords once a while, it’s better to use orientation.col[2] better be safe then wondering why something isn’t working properly.