consider the mode "AM37L,-1,100"
modegen.py fails to recognise this because the regex used to match the mode string group is ACF:TAPLINE\d+="[\w,]+". Therefore a negative number for the gain term (completely valid in archon taplines) causes this regex to fail and no modes to be generated.
The correct regex to match this line is probably
ACF:TAPLINE\d+=\"[\w,-]+\"
(note also escaping the double quote delimiters)