Reverting changes made in #717.

Temporary fix to get pipelines flowing again.
Merge pull request #719 from rhyolight/revert-python-build-changes

Reverting changes made in #717.