Add interface for analyze.py