Some additions to your travis-hangs PR

1) Explicitly import `print_function` from `__future__`
2) Simplify the string matching business