Update to gms.py

Added a check to restart current iterations from a new starting point
if a maximum number of attempts is exceeded while trying to converge to
a good mixing fraction.