def _log_probability_picklable(theta, instance, name):
    """
    Method for multiprocessing to work with class instance methods (making it
    pickleable).
    """
    return getattr(instance, name)(theta)