Python c module. Расширения для python. fputs(buffer, stdout);. разница puts и fputs. pyarg_parsetuple.