Simple Genetic Algorithm Implemented in Python