Credit @motophil for gaskrank.py (#11685)