PyO3's macros now emit a much nicer error message if function return values don't implement the required trait(s).