nfct_logger: flush python stdout buffer after each output line