analyze.py fixed remove defs