Might be more reliable to get info about the host you are running on programmatically. That way you don't need to worry about accidentally setting identical (or otherwise incorrect) values for grinder.hostid on your various agents. You could use something like this:
import socket
# ...
host_id = socket.gethostname()
# or alternately
host_id = socket.gethostname().split('.')[0]