Python get ip address of remote host