Simulated annealing and replica exchange implementation using Python and NumPy library