Run the Python tests on our continuous build.
Various build fixes.

[skip ci]