updated python idioms with help() function