Basic example of a genetic  algorithm in python