factor make_ensemble into src/rainman/testing.py
it's not like this code is actually supposed to work.
patch gethostbyname for connection allocation.