def run_simulation(task):
    """ A simple function to run a :py:class:`~simulations.simulation.Simulation`. Used with the multiprocessing pool.

    Parameters:

        task
          An instance of a :py:class:`~simulations.simulation.Simulation` to run

    """

    klass = task.pop(0)
    sim = klass(*task)

    return sim.run()
    #return task.run()