A class implementation of a genetic algorithm in python.