Flushing for python3