Looks like no scaling is done elsewhere on blender for this code. I hope this bug is squashed for good.