Update main.py

fixed multiple class-reports 
still bugs with empty fields in some cases