Python implementation of MCMC and Genetic Algorithm