def ceiling_thresh(progress, maximum):
    'Creates a progress object\n    Ensures that 0 < progress < maximum'
    effective_progress = max(0, progress)
    if (maximum > 0):
        return Progress(min(effective_progress, maximum), maximum)
    else:
        return Progress(effective_progress, maximum)
Creates a progress object
Ensures that 0 < progress < maximum
def ceiling_thresh(progress, maximum):
    'Creates a progress object\n    Ensures that 0 < progress < maximum'
    effective_progress = max(0, progress)
    if (maximum > 0):
        return Progress(min(effective_progress, maximum), maximum)
    else:
        return Progress(effective_progress, maximum)