A genetic algoritms test in python 3