python tests: Fix python tests on RHEL6