debugged generation of python script when distance between GB and indenter is zero