Repaired tests for Python 3 by explicitly importing input in utils