def _agl_compliant_name(glyph_name):
MAX_GLYPH_NAME_LENGTH = <NUM_LIT><EOL>clean_name = re.sub("<STR_LIT>", "<STR_LIT>", glyph_name)<EOL>if len(clean_name) > MAX_GLYPH_NAME_LENGTH:<EOL><INDENT>return None<EOL><DEDENT>return clean_name<EOL>
Return an AGL-compliant name string or None if we can't make one.