Code to determine sfh parameters of galaxy populations with emcee