A major security lapse by Bengaluru-based eMudhra was traced to a Python script error that weakened its private cryptographic keys, according to the post-incident report.