Difficult to answer at the rate you are editing but:
m_angle = math.degrees(math.atan(float(thing.position()[1]-stuff.position()[1]) / float(thing.position()[0]-stuff.position()[0])))
the bit inside the atan is equivalent to something/(a-b)
m_angle = math.degrees(math.atan(float(thing.position()[1]-stuff.position()[1]) / thing.position()[0]-stuff.position()[0]))
the bit inside the atan is equivalent to (something/a)-b