Update cobProfiles.py

Updated code.