decrease python function course