process stdin flush () python