Round the coordinates of a model that outputs to a text file?
Round just returns a rounded version of your variable, it doesn't change the variable. Your code should read something like:

xloc = round(obj.location.x, 2)