Pull in configuration for Python configuration #3555

Basically, cherry picking a change from master onto V7_9_5-branch to
stop spurious build failures in the Batlab.