Move logic that does processing of the input into a separate process_input function.
Move logic that does processing of the input into a separate
process_input function.

This should make it easier to test this logic in isolation later.

msabramo/tox,msabramo/tox