docker python flush stdout