python read from stdin pipe