A simple MCMC code for cosmological parameter estimation where only expansion history matters