magnitudePercent not being piped back to Python properly