fixed pep8 errors
Changed as_even to return a class rather than a partial fct