Started coding the optimizer in python. Not done yet.