Update curo.py

Added setdefault helper to create default class variables only if the variable doesn't exist.