Refresh server object before adding DNS entry as address may have changed, PEP8 fixes