Ticket #3494 Cleanup conditional build logic around python bindings.