doc: fix style of C/Python examples in docs