python: first fix towards cross-compiling