you define self.reducedH but reference reducedH which python thinks is a global variable
change reducedH to a local variable in the function so instead of
self.reducedH = player.getH()%360.0
use
reducedH = player.getH()%360
you define self.reducedH but reference reducedH which python thinks is a global variable
change reducedH to a local variable in the function so instead of
self.reducedH = player.getH()%360.0
use
reducedH = player.getH()%360