Playing with genetic algorithms in python