undergrad.py now outputs a comma seperated file