fix timeouts on python3

this fixes #20, which @PRDeltoid ran into too on linux with a c++ program (using `cin >> char_var`)

apparently python3 changes some buffer behavior in `subprocess.PIPE`? we're sending much less than what should be buffered and a newline, so i have no idea why this happens, honestly.