Fixes for API changes in 2.81
2.81 reworked the mapping node, making location/rotation/scale actual node inputs instead of just properties of the node. This meant node.rotation.z became node.inputs['Rotation'].default_value.z.
Still works in 2.80 as well.