fixing input and raw_input, tests

PR for #2.