python: fix reporting of tiff and webp image support
tests: fix png and web encoding tests to run only if support is available