cleanups

Patch 1 changes piglit to build with GLES[1-3], GL, and GLX tests on, and CL tests off, as a forced value rather than relying on the defaults which do not include GLES. This may introduce additional test failures.

Patches 2-3 are small bug fixes for the python framework