Support stdin via pipe, but not yet python3

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>