Fix importing validation for python3

Note that there are all sorts of fun python3 errors in the tests anyway, but at least this imports now.