Import cython code in try...except block