Python: fixed simulated annealing.