Now that you have changed the distribution logic, you can pass directly the ses object as a param (it is lightweight and pickeable) and drop the ordinal field (afaik it is not used).