tests: Add cython3

Signed-off-by: Michael Buesch <m@bues.ch>
Refactor cython build

Signed-off-by: Michael Buesch <m@bues.ch>