Fix organization_stats.py
Port autolabel function before the main code