gensave: strip trailing 'L' from a/c IDs (needed in some Python versions)