Fix #45 does not accept standard input when running under python 3

Fixes #45