penultimate word c and python