Make reversed_hosts creation more Pythonic