moved generateEnsemble from sim.py to ensemble.py

Fits better here since only makeObs calls it (also some scripts in
scratch that will need to be updated). Will want to check how makeObs
calls it since it only does one galaxy at a time - vectorize?

Also, replace type(prior) is X to isinstance(prior, X) which is
apparently faster or preferred.